package com.beizhen.demo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beizhen.demo.entity.StuAdministrativeDivision;
import com.beizhen.demo.entity.StuBaseClassify;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
*  Dao接口
*/
@Repository
public interface StuAdministrativeDivisionDao extends BaseMapper<StuAdministrativeDivision> {

    /**
     * 邓流洋 2020.08.01
     * 查询一级区划
     */
    public List<StuAdministrativeDivision> getOneAreaInfo();

    /**
     * 邓流洋 2020.08.01
     * 根据一级区划查询二级区划
     */
    public List<StuAdministrativeDivision> getTwoAreaInfo(@Param("ad_code") String code);
}
